import * as types from './types'
const actions = {
  setDateOptions({commit}, msg) {
    commit(types.DATE_OPTIONS, msg)
  },
  setSelectedTime({commit}, msg) {
    commit(types.SELECTED_TIME, msg)
  },
  setStockTime({commit}, msg) {
    commit(types.STOCK_TIME, msg)
  },
  setSelectedDate({commit},msg){
  	commit(types.SELECTED_DATE,msg)
  },
  setLastDate({commit},msg){
    commit(types.LAST_DATE,msg)
  },
  setProAnalysisIndex({commit},msg){
    commit(types.PROANALYSIS_INDEX,msg)
  },
  setMonthIndex({commit},msg){
    commit(types.MONTH_INDEX,msg)
  },
  setMyAssetIndex({commit},msg){
    commit(types.MYASSET_INDEX,msg)
  },
  setMonthTop({commit},msg){
    commit(types.MONTH_TOP,msg)
  },
  setPageNum({commit},msg){
    commit(types.PAGE_NUM,msg)
  },
  setScrollTop({commit},msg){
    commit(types.SCROLL_TOP,msg)
  }
};

export default actions
